package com.wenx.v3system.modular.cloud.domain.maps;

import com.wenx.v3system.modular.cloud.domain.dto.SysDepartmentDto;
import com.wenx.v3system.modular.cloud.domain.po.SysDepartment;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(componentModel = "spring")
public interface SysDepartmentMap {

    SysDepartmentMap INSTANCE = Mappers.getMapper(SysDepartmentMap.class);

    SysDepartment toPo(SysDepartmentDto dto);
    
    SysDepartmentDto toDto(SysDepartment po);
    
    List<SysDepartment> toPoList(List<SysDepartmentDto> dtoList);
    
    List<SysDepartmentDto> toDtoList(List<SysDepartment> poList);
}